<%--
  Created by IntelliJ IDEA.
  User: buhuayang
  Date: 16/7/13
  Time: 20:59
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="${ctxPath}/css/bootstrap.min.css" rel="stylesheet">
    <link href="${ctxPath}/css/chat-room.css" rel="stylesheet">

    <title>websocket聊天室demo</title>
    <script src="${ctxPath}/js/jquery.min.js"></script>
    <script src="${ctxPath}/js/jquery.scrollTo.min.js"></script>
    <script src="${ctxPath}/js/bootstrap.min.js"></script>
    <script src="${ctxPath}/js/sockjs.min.js"></script>

    <!--[if lt IE 9]>
    <script src="${ctxPath}/js/html5shiv.min.js"></script>
    <script src="${ctxPath}/js/respond.min.js"></script>
    <![endif]-->

    <script src="${ctxPath}/js/chat-room.js"></script>
</head>
<body>
<div class="container">
    <input type="hidden" id="username" value="${sessionScope['username']}" />
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="panel-title">当前在线用户</h2>
                </div>
                <div id="online-list" class="panel-body">

                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div id="chat-panel" class="panel panel-default">
                <div class="panel-body">

                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <form>
            <div class="col-md-9">
                <div class="form-group">
                    <input id="msgText" type="text" class="form-control"/>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <button type="button" class="btn btn-default">发送</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
